<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			
	String message = (String) request.getAttribute("message");
	if (null == message) {
		message = "";
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0041)http://www.xingtai123.com/shenghuo/zc.asp -->
<HTML>
	<HEAD>
		<base href="<%=basePath%>">
		<TITLE>邢台123--用户注册</TITLE>
		<META content="text/html; charset=gb2312" http-equiv=Content-Type>
		<STYLE type=text/css>
BODY {
	MARGIN: 0px
}

.line2 {
	BORDER-BOTTOM: #526c7b 1px dashed;
	BORDER-LEFT: #526c7b 1px dashed;
	BORDER-TOP: #526c7b 1px dashed;
	BORDER-RIGHT: #526c7b 1px dashed
}
</STYLE>

<SCRIPT>
function checkemail(form){
   //文本框的判断
  if(!form.UserName.value){
    alert("请输入您的用户名！");
    form.UserName.focus();
	return false;
  }
  if(!form.PassWord.value){
    alert("请输入您的密码！");
    form.PassWord.focus();
	return false;
  }
  if (form.PassWord.value.length<6)
  {
    alert("为了你的安全,密码不得少于6位！");
    form.PassWord.focus();
    return (false);
  }
  if(!form.PassWord2.value){
    alert("请输入您的确认密码！");
    form.PassWord2.focus();
	return false;
  }
  if(form.PassWord2.value!=form.PassWord.value){
    alert("两次密码输入不一致，请重新输入！");
    form.PassWord2.focus();
	return false;
  }
  if(!form.random.value){
    alert("请输入验证码！");
    form.random.focus();
	return false;
  }
}
</SCRIPT>

<STYLE type=text/css>
BODY {
	COLOR: #333333;
	FONT-SIZE: 12px
}

TD {
	COLOR: #333333;
	FONT-SIZE: 12px
}

TH {
	COLOR: #333333;
	FONT-SIZE: 12px
}

.style1 {
	COLOR: #ffffff
}
</STYLE>

		<META name=GENERATOR content="MSHTML 8.00.6001.19222">
	</HEAD>
	<BODY onload=document.form1.UserName.focus()>
		<TABLE border=0 cellSpacing=0 cellPadding=0 width="62%" align=center
			height=400>
			<TBODY>
				<TR>
					<TD align=center width="81%">
						<TABLE class=line2 border=0 cellSpacing=1 cellPadding=0
							width="89%" align=center height=224>
							<TBODY>
								<TR>
									<TD height=25 align=center>
										<strong><font color="green" size='3'>用户注册</font></strong><br/>
										&emsp;<font color="red"><%=message %></font>
									</TD>
								</TR>
								<TR>
									<TD height=185>
										<FORM id=form1 onsubmit="return checkemail(this);" method=post
											name=form1 action="doUser.do?opers=regist">
											<TABLE border=0 cellSpacing=2 cellPadding=0 width="101%"
												align=center height=166>
												<TBODY>
													<TR>
														<TD height=25 width="15%" align=center>
															用户名：
														</TD>
														<TD height=25>
															<INPUT id=UserName maxLength=14 size=20 type=text
																name=UserName>
														</TD>
														<TD height=25 width="51%">
															请输入用户名；
														</TD>
													</TR>
													<TR>
														<TD height=25 align=center>
															密&emsp;码：
														</TD>
														<TD height=25>
															<INPUT id=PassWord maxLength=14 size=20 type=password
																name=PassWord>
														</TD>
														<TD height=25>
															请输入您的登录密码，不得少于 6 位；
														</TD>
													</TR>
													<TR>
														<TD height=25 align=center>
															确认密码：
														</TD>
														<TD height=25>
															<INPUT id=PassWord2 maxLength=14 size=20 type=password
																name=PassWord2>
														</TD>
														<TD height=25>
															请再次输入您的密码；
														</TD>
													</TR>
													<TR>
														<TD height=25 align=center>
															验证码：
														</TD>
														<TD height=25>
															<input type="text" name="random" id="random" size="6">
															<img id="xMan" src="imgcode"
																onclick="javascript:changeOne();"></img>
															<a href="javascript:changeOne();">换一张</a>
															<script type="text/javascript">
																				function changeOne(){	
																					$('#xMan').attr('src','imgcode');
																				}
															</script>
														</TD>
														<TD height=25>
															请再次输入图片中的验证码；
														</TD>
													</TR>
													<TR>
														<TD height=25 width="34%" colspan="2" align="center">
															&nbsp;
															<INPUT value=注册 type=submit name=Submit>
															&nbsp;&nbsp;
															<INPUT value=重来 type=reset name=Submit2>
														</TD>
														<TD height=25>
															<A href="index.jsp">返回首页</A>&emsp;
															<A href="login.jsp">已有帐号,直接登陆</A>
														</TD>
													</TR>
												</TBODY>
											</TABLE>
										</FORM>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
						<BR>
						<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"
							align=center height=21>
							<TBODY>
								<TR>
									<TD bgColor=#efefef align=center>
										&nbsp;E-mail: xingtai123@yahoo.cn
									</TD>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</BODY>
</HTML>
